package com.shop.zkmall.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 直播间商品表
 * </p>
 *
 * @author ${author}
 * @since 2025-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("live_room_goods")
@ApiModel(value="LiveRoomGoods对象", description="直播间商品表")
public class LiveRoomGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "直播间ID")
    private Long liveRoomId;

    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    @ApiModelProperty(value = "商品名称（冗余字段）")
    private String goodsName;

    @ApiModelProperty(value = "商品封面图")
    private String coverImg;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "已售数量")
    private Integer sales;

    @ApiModelProperty(value = "活动类型：0免费 1砍价 2竞拍 3闪购")
    private Integer type;

    @ApiModelProperty(value = "排序（越大越靠前）")
    private Integer sort;

    @ApiModelProperty(value = "状态：0开始抢购 1讲解 2重新上架")
    private Boolean status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
